package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbOperatorMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbOperator;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-09-25 17:53
 **/

@Repository
public class TbOperatorDao {
    @Autowired
    TbOperatorMapper tbOperatorMapper;

    public TbOperator selectByPrimaryKey(Long id) {
        return tbOperatorMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbOperator record) {
        return tbOperatorMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbOperator record) {
        return tbOperatorMapper.insertSelective(record);
    }

    public List<TbOperator> selectListForPage(TbOperator where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbOperatorMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbOperator where, TbCustomWhere mapWhere) {
        return tbOperatorMapper.selectListForPageCount(where, mapWhere);
    }
}
